﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmCanibalizacionMovimientoActualizar.aspx.cs" Inherits="Crosland.Automotriz.Web.Canibalizacion.wFrmCanibalizacionMovimientoActualizar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Canibalización Movimiento</div>
    </div>
    <script type="text/javascript">
        function soloNumero(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "0123456789";
            especiales = [32];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }



            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }



        }




        function SetMaxLength(memo, maxLength) {
            if (!memo)
                return;
            if (typeof (maxLength) !== "undefined" && maxLength >= 0) {
                memo.maxLength = maxLength;
                memo.maxLengthTimerToken = window.setInterval(function () {
                    var text = memo.GetText();
                    if (text && text.length > memo.maxLength) {
                        memo.SetText(text.substr(0, memo.maxLength));
                        return;
                    }

                }, 10);
            } else if (memo.maxLengthTimerToken) {
                window.clearInterval(memo.maxLengthTimerToken);
                delete memo.maxLengthTimerToken;
                delete memo.maxLength;
            }
        }
        function OnMaxLengthChanged(s, e) {
            var maxLength = 50;
            SetMaxLength(memo, maxLength);
        }



    </script>
    <script type="text/javascript">
        function gridEditor_Init(s, e) {
            if (hf.Contains(s.cpHFKey))
                s.SetValue(hf.Get(s.cpHFKey));
        }

        function gridEditor_ValueChanged(s, e) {
            hf.Set(s.cpHFKey, s.GetValue());
        }
    </script>
    <script type="text/javascript">
        function gridEditor_Init2(s, e) {
            if (hf2.Contains(s.cpHFKey))
                s.SetValue(hf2.Get(s.cpHFKey));
        }

        function gridEditor_ValueChanged2(s, e) {
            hf2.Set(s.cpHFKey, s.GetValue());
        }
    </script>
    <div class="content-form">
        <asp:UpdatePanel runat="server" UpdateMode="Always">
            <ContentTemplate>
                <table>
                    <tr>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="100px" OnClick="btnGrabar_Click">
                                <Image Url="~/Images/save_16.gif">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="100px" OnClick="btnSalir_Click">
                                <Image Url="~/Images/logout.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
                <div>
                    <dx:ASPxRoundPanel ID="rpCabecera" runat="server" Width="80%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                        GroupBoxCaptionOffsetY="-19px" HeaderText="" ShowHeader="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        View="GroupBox">
                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                        </HeaderStyle>
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                <table>
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label44" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="VIN :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtChasis" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Enabled="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnBuscarMoto" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Text="Buscar">
                                                <ClientSideEvents Click="function(s, e) {
	pcCanibalizacion.Show();
}" />
                                                <Image Url="~/Images/search.png">
                                                </Image>
                                                <Paddings Padding="3px" />
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblIDLogCanibalizacionCab" runat="server" Visible="False"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="ASPxTextBox2" runat="server" ClientVisible="False" Visible="False"
                                                Width="250px">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label46" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Motor :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtMotor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Enabled="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td align="center">
                                            <asp:Label ID="Label41" runat="server" BorderStyle="None" Font-Bold="True" ForeColor="Black"
                                                Style="font-family: Verdana; font-size: 11px" Text="Nro.Lote"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtMotoCanibalizar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Enabled="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label42" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Modelo:"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtModelo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Enabled="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td align="center">
                                            <asp:Label ID="Label43" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Color :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtColor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px" Enabled="False">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label45" runat="server" BorderStyle="None" Font-Bold="True" ForeColor="Black"
                                                Style="font-family: Verdana; font-size: 11px" Text="Año del Modelo :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtAnioModelo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Enabled="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td align="center">
                                            <asp:Label ID="Label47" runat="server" BorderStyle="None" Font-Bold="True" ForeColor="Black"
                                                Style="font-family: Verdana; font-size: 11px" Text="Año de Fabricación :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtAnioFabricacion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Enabled="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="170px">
                                                <Paddings Padding="4px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label40" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Tipo Movimiento :" BorderStyle="None"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cboTipoMovimiento" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <Paddings Padding="4px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="center">
                                            <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Fecha Canibalización :" BorderStyle="None"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxDateEdit ID="deFechaCanibalizacion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <CalendarProperties>
                                                    <HeaderStyle Spacing="1px" />
                                                </CalendarProperties>
                                                <Paddings Padding="4px" />
                                            </dx:ASPxDateEdit>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Label ID="Label48" runat="server" BorderStyle="None" Font-Bold="True" 
                                                ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Técnico :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cboTecnico" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <Paddings Padding="4px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="center">
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="center" style="width: 116px">
                                            <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                font-size: 11px" Text="Observación :"></asp:Label>
                                        </td>
                                        <td>
                                            <dx:ASPxMemo ID="txtObservacion" runat="server" ClientInstanceName="memo" Height="71px"
                                                Width="500px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                            </dx:ASPxMemo>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxRoundPanel>
                </div>
                <div>
                    <table style="width: 98%;">
                        <tr>
                            <td>
                                <dx:ASPxRoundPanel ID="rpDetalle" runat="server" Width="82%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                    GroupBoxCaptionOffsetY="-19px" HeaderText="Detalle movimiento" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    ShowHeader="False" View="GroupBox">
                                    <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                    <HeaderStyle>
                                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                    </HeaderStyle>
                                    <PanelCollection>
                                        <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td align="right">
                                                        <dx:ASPxButton ID="btnBuscarMaterial" runat="server" Text="Agregar" AutoPostBack="False"
                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnBuscarMaterial_Click">
                                                            <Image Url="~/Images/add2.png">
                                                            </Image>
                                                            <Paddings Padding="3px" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                            <dx:ASPxGridView ID="grdCanibalizacionMovDet" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" KeyFieldName="ID_MATERIAL"
                                                OnRowCommand="grdCanibalizacionMovDet_RowCommand">
                                                <Columns>
                                                    <dx:GridViewDataTextColumn Caption="Código" ShowInCustomizationForm="True" VisibleIndex="1"
                                                        FieldName="COD_MATERIAL" Width="100px">
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Material" ShowInCustomizationForm="True" VisibleIndex="2"
                                                        FieldName="DES_MATERIAL" Width="350px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Cantidad" ShowInCustomizationForm="True" VisibleIndex="3"
                                                        FieldName="CANTIDAD" Width="60px">
                                                        <DataItemTemplate>
                                                            <dx:ASPxTextBox ID="ASPxTextBox1" runat="server" onkeypress="return soloNumero(event)"
                                                                Text='<%#Eval("CANTIDAD")%>' CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Width="50px" OnInit="ASPxTextBox1_Init">
                                                                <ClientSideEvents Init="gridEditor_Init" ValueChanged="gridEditor_ValueChanged" />
                                                            </dx:ASPxTextBox>
                                                            <asp:RangeValidator runat="server" ID="rngDate" ControlToValidate="ASPxTextBox1"
                                                                Type="Integer" MinimumValue="1" MaximumValue="10000" ErrorMessage="*" SetFocusOnError="true" />
                                                        </DataItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Cant.Stock" ShowInCustomizationForm="True" VisibleIndex="4"
                                                        FieldName="CANT_STOCK" Width="50px">
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Cant.Transito" ShowInCustomizationForm="True"
                                                        VisibleIndex="5" FieldName="CANT_TRANSITO" Width="50px">
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="IdMaterial" FieldName="ID_MATERIAL" ShowInCustomizationForm="True"
                                                        Visible="False" VisibleIndex="0">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Quitar" ShowInCustomizationForm="True" VisibleIndex="10"
                                                        Width="50px">
                                                        <DataItemTemplate>
                                                            <asp:ImageButton ID="btnQuitar" runat="server" CommandArgument='<%# Bind("ID_MATERIAL") %>'
                                                                CommandName="Quitar" ImageAlign="Middle" ImageUrl="~/Images/delete.png" />
                                                        </DataItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" />
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Comentario" ShowInCustomizationForm="True" VisibleIndex="9"
                                                        FieldName="OBSERVACION">
                                                        <DataItemTemplate>
                                                            <dx:ASPxMemo ID="txtComentarioArticulo" ClientInstanceName="memo" runat="server"
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" Text='<%#Eval("OBSERVACION")%>'
                                                                CssPostfix="Office2010Blue" Height="25px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Width="230px" OnInit="txtComentarioArticulo_Init">
                                                                <ClientSideEvents Init="gridEditor_Init2" ValueChanged="gridEditor_ValueChanged2" />
                                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                                            </dx:ASPxMemo>
                                                        </DataItemTemplate>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="CUP S/." FieldName="CUP_S" ShowInCustomizationForm="True"
                                                        VisibleIndex="6" Width="50px">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="CUP $." FieldName="CUP_D" ShowInCustomizationForm="True"
                                                        VisibleIndex="7" Width="50px">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="FOB" FieldName="FOB" ShowInCustomizationForm="True"
                                                        VisibleIndex="8" Width="50px">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                                <SettingsBehavior AllowSort="False" />
                                                <SettingsPager PageSize="15" Mode="ShowAllRecords">
                                                </SettingsPager>
                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanelOnStatusBar>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </Images>
                                                <ImagesFilterControl>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </ImagesFilterControl>
                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                    </Header>
                                                    <LoadingPanel ImageSpacing="5px">
                                                    </LoadingPanel>
                                                </Styles>
                                                <StylesPager>
                                                    <PageNumber ForeColor="#3E4846">
                                                    </PageNumber>
                                                    <Summary ForeColor="#1E395B">
                                                    </Summary>
                                                </StylesPager>
                                                <StylesEditors ButtonEditCellSpacing="0">
                                                </StylesEditors>
                                            </dx:ASPxGridView>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxRoundPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <dx:ASPxHiddenField ID="hiddenField" runat="server" ClientInstanceName="hf">
                                </dx:ASPxHiddenField>
                            </td>
                            <td>
                                <dx:ASPxHiddenField ID="hiddenField2" runat="server" ClientInstanceName="hf2">
                                </dx:ASPxHiddenField>
                            </td>
                        </tr>
                    </table>
                </div>
                <table style="width: 98%;">
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="pcMaterial" runat="server" ClientInstanceName="pcMaterial"
                                HeaderText="Buscar Material" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                EnableHotTrack="False" AllowDragging="True" CloseAction="CloseButton">
                                <HeaderImage Url="~/Images/search.png">
                                </HeaderImage>
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl>
                                        <table>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtPopBuscar" runat="server" Width="400px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" NullText="Ingrese ( código o descripción o modelo )"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <Paddings Padding="5px" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnMBuscar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Buscar" Width="100px" TabIndex="5" OnClick="btnMBuscar_Click1">
                                                        <Image Url="~/Images/search.png">
                                                        </Image>
                                                        <Paddings Padding="3px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <dx:ASPxGridView ID="grdMaterial" runat="server" AutoGenerateColumns="False" ClientInstanceName="grdMaterial"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        KeyFieldName="ID_MATERIAL" Width="100%" OnAfterPerformCallback="grdMaterial_AfterPerformCallback"
                                                        OnHtmlRowPrepared="grdMaterial_HtmlRowPrepared">
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn FieldName="ID_MATERIAL" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="0" Width="0px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_MATERIAL" ShowInCustomizationForm="True"
                                                                VisibleIndex="1" Width="90px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Descripción" FieldName="DES_MATERIAL" ShowInCustomizationForm="True"
                                                                VisibleIndex="2" Width="350px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="MODELO" ShowInCustomizationForm="True" VisibleIndex="3"
                                                                Width="150px" Caption="Modelo">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Grupo Artículo" FieldName="GRUPO_ARTICULOS" ShowInCustomizationForm="True"
                                                                VisibleIndex="4" Width="150px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cant.Stock" ShowInCustomizationForm="True" VisibleIndex="5"
                                                                Width="100px" FieldName="STOCK_ACTUAL">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cant.Transito" ShowInCustomizationForm="True"
                                                                VisibleIndex="6" Width="100px" FieldName="CANT_TRANSITO">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="CUP S/." FieldName="CUP_S" ShowInCustomizationForm="True"
                                                                VisibleIndex="7" Width="60px">
                                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                </PropertiesTextEdit>
                                                                <DataItemTemplate>
                                                                    <dx:ASPxLabel ID="lblcup_s" runat="server" Width="50px" Visible="false" Text='<%#Eval("CUP_S")%>'>
                                                                    </dx:ASPxLabel>
                                                                    <dx:ASPxTextBox ID="txtcup_s" runat="server" Width="50px" Visible="false" Text='<%#Eval("CUP_S")%>'
                                                                        onkeypress="return soloNumero(event)">
                                                                    </dx:ASPxTextBox>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="CUP $." FieldName="CUP_D" ShowInCustomizationForm="True"
                                                                VisibleIndex="8" Width="60px">
                                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                </PropertiesTextEdit>
                                                                <DataItemTemplate>
                                                                    <dx:ASPxLabel ID="lblcup_d" runat="server" Width="50px" Visible="false" Text='<%#Eval("CUP_D")%>'>
                                                                    </dx:ASPxLabel>
                                                                    <dx:ASPxTextBox ID="txtcup_d" runat="server" Width="50px" Visible="false" Text='<%#Eval("CUP_D")%>'
                                                                        onkeypress="return soloNumero(event)">
                                                                    </dx:ASPxTextBox>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="FOB" FieldName="FOB" ShowInCustomizationForm="True"
                                                                VisibleIndex="10" Width="100px">
                                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                </PropertiesTextEdit>
                                                                <DataItemTemplate>
                                                                    <dx:ASPxTextBox ID="txtFob" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("FOB")%>' Visible="false" Width="50px" onkeypress="return soloNumero(event)">
                                                                    </dx:ASPxTextBox>
                                                                    <dx:ASPxLabel ID="lblFob" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("FOB")%>' Visible="false" Width="50px">
                                                                    </dx:ASPxLabel>
                                                                </DataItemTemplate>
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowDragDrop="False" AllowGroup="False"
                                                            AllowSort="False" />
                                                        <SettingsPager PageSize="500" Visible="False">
                                                        </SettingsPager>
                                                        <Settings ShowFooter="True" ShowVerticalScrollBar="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="width: 25px">
                                                    &nbsp;
                                                </td>
                                                <td class="formato-tabla-td" style="width: 65px">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td align="right" height="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 25px">
                                                    <asp:Label ID="Label15" runat="server" Text="Ver "></asp:Label>
                                                </td>
                                                <td class="formato-tabla-td" style="width: 65px">
                                                    <dx:ASPxComboBox ID="cboOpcion" runat="server" AllowMouseWheel="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" EnableAnimation="False" EnableDefaultAppearance="False"
                                                        Height="25px" SelectedIndex="0" ShowLoadingPanel="False" ShowLoadingPanelImage="False"
                                                        ShowShadow="False" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="60px">
                                                        <Items>
                                                            <dx:ListEditItem Selected="True" Text="100" Value="100" />
                                                            <dx:ListEditItem Text="200" Value="200" />
                                                            <dx:ListEditItem Text="500" Value="500" />
                                                            <dx:ListEditItem Text="1000" Value="1000" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="Label16" runat="server" Text="registros."></asp:Label>
                                                </td>
                                                <td align="right">
                                                    <dx:ASPxButton ID="btnPopAgregar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Aceptar" Width="100px" AutoPostBack="False" OnClick="btnPopAgregar_Click">
                                                        <Image Url="~/Images/busqueda-show.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="pcMaterialReponer" runat="server" ClientInstanceName="pcMaterialReponer"
                                HeaderText="Materiales" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                EnableHotTrack="False" AllowDragging="True" CloseAction="CloseButton">
                                <HeaderImage Url="~/Images/search.png">
                                </HeaderImage>
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <dx:ASPxGridView ID="grdCanibalizacionMovEntrada" runat="server" AutoGenerateColumns="False"
                                                        ClientInstanceName="grdMaterial" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" KeyFieldName="ID_MATERIAL" Width="100%" OnHtmlRowPrepared="grdCanibalizacionMovEntrada_HtmlRowPrepared">
                                                        <TotalSummary>
                                                            <dx:ASPxSummaryItem DisplayFormat="total de filas = #,##0" FieldName="DES_SECTOR"
                                                                SummaryType="Count" />
                                                        </TotalSummary>
                                                        <Columns>
                                                            <dx:GridViewCommandColumn ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                                                                VisibleIndex="0" Width="50px">
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_MATERIAL" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="1" Width="0px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_MATERIAL" ShowInCustomizationForm="True"
                                                                VisibleIndex="2" Width="90px">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Descripción" FieldName="DES_MATERIAL" ShowInCustomizationForm="True"
                                                                VisibleIndex="3" Width="350px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="MODELO" ShowInCustomizationForm="True" VisibleIndex="4"
                                                                Width="150px" Caption="Modelo">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cant.Stock" ShowInCustomizationForm="True" VisibleIndex="5"
                                                                Width="100px" FieldName="STOCK_ACTUAL">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cant.Transito" ShowInCustomizationForm="True"
                                                                VisibleIndex="6" Width="60px" FieldName="CANT_TRANSITO">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="CUP S/." FieldName="CUP_S" ShowInCustomizationForm="True"
                                                                VisibleIndex="7" Width="60px">
                                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                </PropertiesTextEdit>
                                                                <DataItemTemplate>
                                                                    <dx:ASPxTextBox ID="txtcup_s_e" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("CUP_S")%>' Visible="false" Width="50px" onkeypress="return soloNumero(event)">
                                                                    </dx:ASPxTextBox>
                                                                    <dx:ASPxLabel ID="lblcup_s_e" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("CUP_S")%>' Visible="false" Width="50px">
                                                                    </dx:ASPxLabel>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="CUP $." FieldName="CUP_D" ShowInCustomizationForm="True"
                                                                VisibleIndex="8" Width="60px">
                                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                </PropertiesTextEdit>
                                                                <DataItemTemplate>
                                                                    <dx:ASPxTextBox ID="txtcup_d_e" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("CUP_D")%>' Visible="false" Width="50px" onkeypress="return soloNumero(event)">
                                                                    </dx:ASPxTextBox>
                                                                    <dx:ASPxLabel ID="lblcup_d_e" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("CUP_D")%>' Visible="false" Width="50px">
                                                                    </dx:ASPxLabel>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="FOB" FieldName="FOB" ShowInCustomizationForm="True"
                                                                VisibleIndex="9" Width="60px">
                                                                <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                </PropertiesTextEdit>
                                                                <DataItemTemplate>
                                                                    <dx:ASPxTextBox ID="txtfob_e" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("FOB")%>' Visible="false" Width="50px" onkeypress="return soloNumero(event)">
                                                                    </dx:ASPxTextBox>
                                                                    <dx:ASPxLabel ID="lblfob_e" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text='<%#Eval("FOB")%>' Visible="false" Width="50px">
                                                                    </dx:ASPxLabel>
                                                                </DataItemTemplate>
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Salida" FieldName="CANT_SALIDA" ShowInCustomizationForm="True"
                                                                VisibleIndex="10" Width="60px">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Entrada" FieldName="CANT_ENTRADA" ShowInCustomizationForm="True"
                                                                VisibleIndex="11" Width="60px">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Saldo(S - E)" FieldName="TOTAL_SALDO" ShowInCustomizationForm="True"
                                                                VisibleIndex="13" Width="80px">
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowDragDrop="False" AllowGroup="False"
                                                            AllowSort="False" />
                                                        <SettingsPager PageSize="500" Visible="False">
                                                        </SettingsPager>
                                                        <Settings ShowFooter="True" ShowVerticalScrollBar="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="width: 25px">
                                                    &nbsp;
                                                </td>
                                                <td class="formato-tabla-td" style="width: 65px">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td align="right" height="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 25px">
                                                    &nbsp;
                                                </td>
                                                <td class="formato-tabla-td" style="width: 65px">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td align="right">
                                                    <dx:ASPxButton ID="btnPopAgregaMaterialMovEntrada" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Agregar" Width="100px" AutoPostBack="False" OnClick="btnPopAgregaMaterialMovEntrada_Click">
                                                        <Image Url="~/Images/busqueda-show.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="pcCanibalizacion" runat="server" AllowDragging="True" CloseAction="CloseButton"
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                EnableHotTrack="False" HeaderText="Buscar" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="700px" ClientInstanceName="pcCanibalizacion">
                                <HeaderImage Url="~/Images/user.png">
                                </HeaderImage>
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                                        <table width="100%">
                                            <tr>
                                                <td style="width: 86px">
                                                    <asp:Label ID="Label3" runat="server" Text="VIN :" BorderStyle="None" Width="100px"></asp:Label>
                                                </td>
                                                <td style="200px; width: 200px;">
                                                    <dx:ASPxTextBox ID="txtPopNroLote" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="25px" MaxLength="100" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="200px">
                                                        <Paddings PaddingLeft="5px" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnBuscar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" OnClick="btnBuscar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Buscar" Width="100px">
                                                        <Image Url="~/Images/search.png">
                                                        </Image>
                                                        <Paddings Padding="3px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <dx:ASPxGridView ID="grdListadoVehiculos" runat="server" AutoGenerateColumns="False"
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            Width="100%" KeyFieldName="NRO_LOTE" OnAfterPerformCallback="grdListadoVehiculos_AfterPerformCallback">
                                            <Columns>
                                                <dx:GridViewDataTextColumn Caption="VIN" FieldName="VIN" VisibleIndex="5">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Motor" FieldName="NRO_MOTOR" VisibleIndex="6">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Nro Lote" FieldName="NRO_LOTE" VisibleIndex="1">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Año Fabricación" FieldName="ANIO_FABRICACION"
                                                    VisibleIndex="8">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Año Modelo" FieldName="ANIO_MODELO" VisibleIndex="7">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Color" FieldName="DES_COLOR" VisibleIndex="4"
                                                    Visible="False" Width="0px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Cod.Org.Ventas" FieldName="COD_ORG_VENTAS" VisibleIndex="13"
                                                    Visible="False">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ID_LOG_CANIBALIZACION_CAB" ShowInCustomizationForm="True"
                                                    Visible="False" VisibleIndex="0" Caption="IdCab">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Estado Aprobación" FieldName="ESTADO" VisibleIndex="14">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Fec.Canibalizacion" FieldName="FECHA_CANIBALIZACION"
                                                    ShowInCustomizationForm="True" VisibleIndex="10">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Fec.Armado" FieldName="FECHA_ARMADO" ShowInCustomizationForm="True"
                                                    VisibleIndex="11">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" ShowInCustomizationForm="True"
                                                    VisibleIndex="3">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="DES_MARCA" VisibleIndex="2" Caption="Marca">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowClientEventsOnLoad="False" AllowDragDrop="False" AllowGroup="False"
                                                AllowFocusedRow="True" />
                                            <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False" />
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td style="width: 25px">
                                                    &nbsp;
                                                </td>
                                                <td class="formato-tabla-td" style="width: 65px">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td align="right" height="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 25px">
                                                    &nbsp;
                                                </td>
                                                <td class="formato-tabla-td" style="width: 65px">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td align="right">
                                                    <dx:ASPxButton ID="btnPopAceptar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Aceptar" Width="100px" OnClick="btnPopAceptar_Click" AutoPostBack="False">
                                                        <Image Url="~/Images/ok.png">
                                                        </Image>
                                                        <Paddings Padding="5px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                                CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                EnableViewState="False" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="300px" EnableHotTrack="False">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                    <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="Panelpopup" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td colspan="2">
                                                                <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td align="center" style="width: 215px">
                                                                <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <ClientSideEvents Click="function(s, e) {popupmsj.Hide();}" />
                                                                    <Image Url="~/Images/ok.png">
                                                                    </Image>
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
